<?php
class CMS_Models_Media extends Zend_Db_Table_Abstract
{
  protected $_name = "multimedia";	
	
  public function __construct( )
  {
    parent::__construct(array('table' =>$this->_name));
  }

  public function getAll()
  {
    return $this->fetchAll();
  }
	
  public function getMediaById($id)
  {
    return $this->fetchRow("id = '$id' ");
  } 
}